package com.lixl.nacosconsumer.client;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("nacos-discovery-example")
public interface UserServiceClient {

    @GetMapping("/user/{id}")
    JSONObject getUserById(@RequestParam(value = "id") String id);

}
